package com.eyepax.assignment.title.core.initializer.impl;

import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

import com.eyepax.assignment.title.core.initializer.LogInitializer;
import com.eyepax.assignment.title.core.util.Constants;

/**
 * The Apache Log4J Properties Initializer Class, implements {@link LogInitializer}
 * 
 * @author Rukshan Silva | 02nd July 2014
 * @version 1.0.0
 */
public class LogInitializerImpl implements LogInitializer {

	private static Logger log = Logger.getLogger(LogInitializerImpl.class);
	
	/**
	 * {@inheritDoc}
	 */
	@Override
	public void initializeLog() {

		PropertyConfigurator.configure(Constants.Config.LOG4J_PROPERTY_FILE);
	
		log.info("[SUCCESS] LOG4j Successfully Initialized");
	}
}
